package com.bw.mapper;

import com.bw.domain.Major;
import com.bw.domain.Stu;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 黄久畅
* @description 针对表【stu】的数据库操作Mapper
* @createDate 2024-06-05 09:07:40
* @Entity com.bw.domain.Stu
*/
@Mapper
public interface StuMapper {


    @Insert("insert into stu values (#{sid},#{sname},#{idcard},#{tel},#{mid})")
    int myadd(Stu stu);

    @Select("select * from major")
    List<Major> get2();
}




